﻿<%@page import="com.hfjyz.registration.command.OrderInfoSearchCommand"%>
<%@page import="com.hfjyz.registration.util.MasterUtil"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/view/include.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>网上报名-合肥猎头网</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="${contextPath}/view/css/user.css" type="text/css" media="all" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<script type="text/javascript">
	function goSubmit(type) {
		document.getElementById('submitType').value = type;
		orderInfoSearchForm.submit();
	}
</script>
</head>
<body>

	<%@include file="/view/userMenu.jsp"%>
	<c:if test="${!ExamInfo.onlinePay}">
		<div class="midBox">
			<div class="midTitle" style="width: 400px;">网上支付</div>
			<div class="cnt">
				<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#E1E1E1">
					<tr>
						<td align="center" bgcolor="#FFFFFF" style="padding: 20px;"><font color="#FF0000"> 本次报名不需要费用！<br /></font></td>
					</tr>
				</table>
			</div>
		</div>
		<!--bottom-->
		<div class="whiteBG"></div>
	</c:if>
	<c:if test="${ExamInfo.onlinePay}">
		<form:form name="orderInfoSearchForm" method="post" action="${contextPath}/orderInfoSearch.action"
			commandName="OrderInfoSearchCommand"
		>
			<form:hidden path="submitType" id="submitType" />
			<form:hidden path="examId" id="examId" />
			<div class="midBox">
				<div class="midTitle">在线支付</div>
				<div class="cnt">
					<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#E1E1E1">
						<tr>
							<td height="32" align="left" bgcolor="#FFFFFF" valign="middle" style="padding-left: 10px;"><b><span
									style="color: #666666"
								>在线支付状态查询</span></b></td>
						</tr>
						<tr bgcolor="#FFFFFF">
							<td valign="top" align="center" height="140" style="padding-top: 20px;">
								<table width="80%" border="0" cellpadding="4" cellspacing="1" bgcolor="#E1E1E1">
									<tr bgcolor="#ffffff">
										<td style="height: 10px; text-align: right; width: 20%;">身份证号：</td>
										<td style="height: 10px; text-align: left;"><form:input path="idCardNo" id="idCardNo"
												cssClass="bbsInput_short"
											/> <font color="#ff0000"> *&nbsp;&nbsp;<form:errors path="idCardNo" />
										</font></td>
									</tr>
									<tr bgcolor="#ffffff">
										<td style="height: 10px; text-align: right;">密码：</td>
										<td style="height: 10px; text-align: left;"><form:password path="password" id="password" maxlength="16"
												size="18" cssClass="bbsInput_short"
											/> <font color="#ff0000">*&nbsp;&nbsp; <form:errors path="password" />
										</font></td>
									</tr>
									<tr bgcolor="#ffffff">
										<td>&nbsp;</td>
										<td height="22">
											<div style="text-align: left;">
												<input type="button" value="检  索" onclick="goSubmit('search');" />
											</div>
										</td>
									</tr>
									<tr bgcolor="#ffffff">
										<td style="height: 10px; text-align: right;">审核状态：</td>
										<td style="height: 10px; text-align: left; color: #ff0000" colspan="4"><b> <c:choose>
													<c:when test="${OrderInfoSearchCommand.apply.state == '0'}">
											未审核
										</c:when>
													<c:when test="${OrderInfoSearchCommand.apply.state == '1'}">
											审核未通过
										</c:when>
													<c:when test="${OrderInfoSearchCommand.apply.state == '2'}">
											审核通过
										</c:when>
													<c:otherwise>
											&nbsp;
										</c:otherwise>
												</c:choose>
										</b></td>
									</tr>
								</table>
							</td>
						</tr>
						<c:if test="${OrderInfoSearchCommand.showDetail}">
							<tr>
								<td height="32" align="left" bgcolor="#FFFFFF" valign="middle" style="padding-left: 10px;"><b><span
										style="color: #666666"
									>详细信息</span></b><br /> <span style="color: #ff0000;">※请仔细核对信息，如发现有误，通过信息修改修正信息</span></td>
							</tr>
							<tr bgcolor="#FFFFFF">
								<td valign="top" align="center" height="200" style="padding-top: 20px; padding-bottom: 10px;">
									<table width="80%" border="0" cellpadding="4" cellspacing="1" bgcolor="#E1E1E1">
										<tr bgcolor="#ffffff">
											<td width="20%" align="right">身份证号：</td>
											<td width="40%" align="left">${OrderInfoSearchCommand.idCardNo}</td>
											<td width="20%" align="right">姓名：</td>
											<td width="20%" align="left">${OrderInfoSearchCommand.user.name}</td>
											<td rowspan="5"><img src="${contextPath}/imageDownload?userId=${OrderInfoSearchCommand.idCardNo}" height="140px"
												width="102px"
											/></td>
										</tr>
										<tr bgcolor="#ffffff">
											<td align="right">报考部门：</td>
											<td align="left">${OrderInfoSearchCommand.apply.applyDepartName}</td>
											<td align="right">岗位类别：</td>
											<td align="left" colspan="2">${OrderInfoSearchCommand.apply.applyOfficeName}</td>
										</tr>
										<tr bgcolor="#ffffff">
											<td align="right">岗位编号：</td>
											<td align="left" colspan="4">${OrderInfoSearchCommand.apply.applyOfficeCode}</td>
										</tr>
										<tr bgcolor="#ffffff">
											<td style="height: 10px; text-align: right;">审核状态：</td>
											<td style="height: 10px; text-align: left; color: #ff0000" colspan="4"><b> <c:choose>
														<c:when test="${OrderInfoSearchCommand.apply.state == '0'}">
												未审核
											</c:when>
														<c:when test="${OrderInfoSearchCommand.apply.state == '1'}">
												审核未通过
											</c:when>
														<c:when test="${OrderInfoSearchCommand.apply.state == '2'}">
												审核通过
											</c:when>
														<c:otherwise>
												&nbsp;
											</c:otherwise>
													</c:choose>
											</b></td>
										</tr>
										<tr bgcolor="#ffffff">
											<td style="height: 10px; text-align: right;">原因：</td>
											<td style="height: 10px; text-align: left;" colspan="4"><pre>${OrderInfoSearchCommand.apply.reason}</pre></td>
										</tr>
										<tr bgcolor="#ffffff">
											<td align="right">支付金额：</td>
											<td align="left">${OrderInfoSearchCommand.exam.regFee}元</td>
											<td align="right">支付状态：</td>
											<td style="height: 10px; text-align: left; color: #ff0000" colspan="2"><b>
											<c:choose>
												<c:when test="${OrderInfoSearchCommand.orderInfo == null }">未支付</c:when>
												<c:otherwise>
													<c:choose>
														<c:when test="${OrderInfoSearchCommand.orderInfo.orderState == '3'}">支付结果确认中，请半个小时后再次查询。</c:when>
														<c:when test="${OrderInfoSearchCommand.orderInfo.orderState == '2'}">支付失败</c:when>
														<c:when test="${OrderInfoSearchCommand.orderInfo.orderState == '1'}">已支付</c:when>
														<c:when test="${OrderInfoSearchCommand.orderInfo.orderState == '0'}">未支付</c:when>
														<c:otherwise>&nbsp;</c:otherwise>
													</c:choose>
												</c:otherwise>
											</c:choose>
											</b></td>
										</tr>
										<c:if test="${OrderInfoSearchCommand.orderInfo == null || OrderInfoSearchCommand.orderInfo.orderState == '2' || OrderInfoSearchCommand.orderInfo.orderState == '0'}">
										<tr bgcolor="#ffffff">
											<c:choose>
												<c:when test="${OrderInfoSearchCommand.apply.state == '0'}">
													<td style="height: 10px; text-align: center; color: #ff0000" colspan="5">还未审核，无法付款。</td>
												</c:when>
												<c:when test="${OrderInfoSearchCommand.apply.state == '1'}">
													<td style="height: 10px; text-align: center; color: #ff0000" colspan="5">审核未通过※请仔细核对信息，如发现有误，通过信息修改修正信息。</td>
												</c:when>
												<c:when test="${OrderInfoSearchCommand.apply.state == '2'}">
													<td style="height: 10px; text-align: center; padding-left: 100px;" colspan="5"><input type="button"
														value="去支付页面" style="width: 100px;" onclick="goSubmit('pay');"
													/></td>
												</c:when>
												<c:otherwise>
													<td style="height: 10px; text-align: center; padding-left: 100px;" colspan="5">&nbsp;</td>
												</c:otherwise>
											</c:choose>
										</tr></c:if>
									</table>
								</td>
							</tr>
						</c:if>
					</table>
				</div>
			</div>
		</form:form>
	</c:if>
	<%@include file="/view/footer.jsp"%>
</body>
</html>
